import os
import sys

# 将项目根目录添加到Python路径，确保可以导入共享模块
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, project_root)

from client import FTPClient

if __name__ == "__main__":
    # 创建并启动FTP客户端
    # 会进入命令行交互模式
    client = FTPClient()
    client.cmdloop()
